/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.imyours.model.user;

import java.util.Date;

/**
 *
 * @author Administrator
 */
public class UserEntity  {

    //用户id 主键
    private long id;
    //工号
    private String worknum;
    //用户名
    private String username;
    //密码
    private String password;
    //昵称
    private String nickname;
    //生日
    private Date birthday;
    //性别
    private byte sex;
    //国家
    private String country;
    //省份
    private String province;
    //城市
    private String city;
    //邮编
    private String zip;
    //电邮
    private String mail;
    //地址
    private String address;
    //电话
    private String phone;
    //qq
    private String qq;
    //真名
    private String realname;
    //生肖
    private String signOfBorn;
    //学校
    private String school;
    //血型
    private String bloodType;
    //专业
    private String major;
    //星座
    private String constellation;
    //个人主页
    private String personalWeb;
    //注释
    private String userDesc;
    
    /**
     *是否管理员 
     */
    private boolean admin ;


    /**
     * @return the id
     */
    public long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * @return the worknum
     */
    public String getWorknum() {
        return worknum;
    }

    /**
     * @param worknum the worknum to set
     */
    public void setWorknum(String worknum) {
        this.worknum = worknum;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the nickname
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * @param nickname the nickname to set
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * @return the birthday
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * @param birthday the birthday to set
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * @return the sex
     */
    public byte getSex() {
        return sex;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(byte sex) {
        this.sex = sex;
    }

    /**
     * @return the country
     */
    public String getCountry() {
        return country;
    }

    /**
     * @param country the country to set
     */
    public void setCountry(String country) {
        this.country = country;
    }

    /**
     * @return the province
     */
    public String getProvince() {
        return province;
    }

    /**
     * @param province the province to set
     */
    public void setProvince(String province) {
        this.province = province;
    }

    /**
     * @return the city
     */
    public String getCity() {
        return city;
    }

    /**
     * @param city the city to set
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * @return the zip
     */
    public String getZip() {
        return zip;
    }

    /**
     * @param zip the zip to set
     */
    public void setZip(String zip) {
        this.zip = zip;
    }

    /**
     * @return the mail
     */
    public String getMail() {
        return mail;
    }

    /**
     * @param mail the mail to set
     */
    public void setMail(String mail) {
        this.mail = mail;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * @return the qq
     */
    public String getQq() {
        return qq;
    }

    /**
     * @param qq the qq to set
     */
    public void setQq(String qq) {
        this.qq = qq;
    }

    /**
     * @return the realname
     */
    public String getRealname() {
        return realname;
    }

    /**
     * @param realname the realname to set
     */
    public void setRealname(String realname) {
        this.realname = realname;
    }

    /**
     * @return the signOfBorn
     */
    public String getSignOfBorn() {
        return signOfBorn;
    }

    /**
     * @param signOfBorn the signOfBorn to set
     */
    public void setSignOfBorn(String signOfBorn) {
        this.signOfBorn = signOfBorn;
    }

    /**
     * @return the school
     */
    public String getSchool() {
        return school;
    }

    /**
     * @param school the school to set
     */
    public void setSchool(String school) {
        this.school = school;
    }

    /**
     * @return the bloodType
     */
    public String getBloodType() {
        return bloodType;
    }

    /**
     * @param bloodType the bloodType to set
     */
    public void setBloodType(String bloodType) {
        this.bloodType = bloodType;
    }

    /**
     * @return the major
     */
    public String getMajor() {
        return major;
    }

    /**
     * @param major the major to set
     */
    public void setMajor(String major) {
        this.major = major;
    }

    /**
     * @return the constellation
     */
    public String getConstellation() {
        return constellation;
    }

    /**
     * @param constellation the constellation to set
     */
    public void setConstellation(String constellation) {
        this.constellation = constellation;
    }

    /**
     * @return the personalWeb
     */
    public String getPersonalWeb() {
        return personalWeb;
    }

    /**
     * @param personalWeb the personalWeb to set
     */
    public void setPersonalWeb(String personalWeb) {
        this.personalWeb = personalWeb;
    }

    /**
     * @return the userDesc
     */
    public String getUserDesc() {
        return userDesc;
    }

    /**
     * @param userDesc the userDesc to set
     */
    public void setUserDesc(String userDesc) {
        this.userDesc = userDesc;
    }

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

   
}
